/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.springblade.modules.admin.service;

import org.springblade.modules.admin.entity.BuildingContractPlus;
import org.springblade.modules.admin.entity.ContractLog;
import org.springblade.modules.admin.vo.ContractLogVO;
import org.springblade.core.mp.base.BaseService;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.springblade.modules.admin.vo.contract.ContractUpdateDescVo;

/**
 * 服务类
 *
 * @author ysq
 * @since 2025-02-11
 */
public interface IContractLogService extends BaseService<ContractLog> {


	/**
	 * 更新合作操作日志
	 *
	 * @param type 操作类型
	 *             101:系统触发-待续签
	 *             102:系统触发-即将到期
	 *             103:系统触发-待生效
	 *             104:系统触发-已生效
	 *             105:系统触发-已到期
	 *             201:人为操作-提交
	 *             202:人为操作-保存草稿
	 *             203:人为操作-提交到草稿以后的编辑-重新提交审核
	 *             204:人为操作-审核通过后的查看提交附件
	 *             <p>
	 *             301:列表按钮操作-终止
	 *             302:列表按钮操作-作废
	 *             303:列表按钮操作-续签
	 *             304:列表按钮操作-脱保
	 *             305:列表按钮操作-取消脱保
	 */
	void saveLogHistory(Integer type, BuildingContractPlus oldBuildingContractPlus, BuildingContractPlus buildingContractPlus);

	/**
	 * 添加操作日志
	 *
	 * @param buildingContractPlus 操作内容
	 */
	void saveLog(BuildingContractPlus oldBuildingContractPlus, BuildingContractPlus buildingContractPlus);

	/**
	 * 更新合同 增加日志
	 *
	 * @param oldBuildingContractPlus
	 * @param buildingContractPlus
	 * @param type 1:编辑修改 2:重新提交修改
	 */
	void updateContractSaveLog(BuildingContractPlus oldBuildingContractPlus, BuildingContractPlus buildingContractPlus,Integer type);

	/**
	 * 新增时增加日志
	 * @param buildingContractPlus
	 */
	ContractUpdateDescVo addContractSaveLog(BuildingContractPlus buildingContractPlus);
}
